#!/usr/bin/env python
#-*- coding:UTF-8 -*-
#####################################################
# Author: Jiaion - jiaion21@gmail.com
# Last modified:  2011-01-21 02:28
# Filename:  models.py
#####################################################
from django.db import models

# Create your models here.
class Device(models.Model):
  Ip = models.IPAddressField()
  Cpu = models.CharField(max_length=40)
  Mem = models.CharField(max_length=16)
  Disk = models.CharField(max_length=20)
  Position = models.CharField(max_length=40)
  State = models.CharField(max_length=40)
  Server = models.CharField(max_length=40)
  Owner = models.CharField(max_length=20)

  def __unicode__(self):
      return self.Ip


class REG(models.Model):
  USER = models.CharField(max_length=15)
  CHUSER = models.CharField(max_length=20)
  PASS = models.CharField(max_length=12)
  ORG = models.CharField(max_length=20)
  APPROVAL = models.BooleanField()

